<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta
      name="viewport"
      content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no"
    />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>WebOffice</title>
  </head>
  <body>
    <script src="./sdk/web-office-sdk-solution-v2.0.3.umd.js"></script>
 <script>
      window.onload =async  () => {
        const instance = WebOfficeSDK.init({
          officeType: WebOfficeSDK.OfficeType.Writer,
          appId: 'SX20230719TBXNMT',
          fileId: '1'
        })


     // 需要等待实例 ready 之后再调用 API
       await instance.Writer()
      }

      
    </script>
  </body>
</html>
